﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

[DataContract]
public class Booking
{
    private List<Ticket> tList = new List<Ticket>();
    [DataMember]
    public int Id
    {
        get;
        set;
    }

    /// <summary>
    /// Price for the movie
    /// </summary>
    [DataMember]
	public double TotalPrice
	{
		get;
		set;
	}
    /// <summary>
    /// Status for the booking reserved/sold
    /// </summary>
    [DataMember]
	public int Status
	{
		get;
		set;
	}
    /// <summary>
    /// The phonenumber for the booking
    /// </summary>
    [DataMember]
	public string CustomerPhone
	{
		get;
		set;
	}
    /// <summary>
    /// The constructor for booking
    /// </summary>
    public Booking (int id, double totalprice, int status, string customerphone)
    {
        Id = id;
        TotalPrice = totalprice;
        Status = status;
        CustomerPhone = customerphone;
    }

    public Booking (int status, string phone)
    {
        Status = status;
        CustomerPhone = phone;
    }

    public void TicketList(Ticket tic)
    {
        tList.Add(tic);
    }

    public List<Ticket> ShowTicket()
    {
        return tList;
    }
}

